package com.example.wentongwang.sports.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.wentongwang.sports.R;

/**
 * Created by Wentong WANG on 2016/5/10.
 */
public class MyFragment extends Fragment {
    private TextView mtv;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View root = inflater.inflate(R.layout.myfragment_layout,container,false);
        mtv = (TextView) root.findViewById(R.id.tv_my_fragment);
        mtv.setText("内容");
        return root;
    }

    @Override
    public void onPause() {
        super.onPause();
    }

}